<!DOCTYPE html>
<html lang="en">
<head>
	<meta charset="UTF-8">
	<meta name="viewport" content="width=device-width, initial-scale=1.0">
	<meta http-equiv="X-UA-Compatible" content="ie=edge">
	<title>Document</title>
</head>
<body>
	<h4>私有方法：浮点数四则运算</h4>
	<pre>0.1 + 0.2 = 0.30000000000000004;  // 原生js
	$(document).calc.plus(0.1, 0.2);  // 0.3

	0.7 - 0.6 = 0.09999999999999998;  // 原生js
	$(document).calc.minus(0.7, 0.6);  // 0.1

	0.8 * 0.4 = 0.32000000000000006;  // 原生js
	$(document).calc.times(0.8, 0.4);  // 0.32

	6.9 / 10 = 0.6900000000000001;  // 原生js
	$(document).calc.divide(6.9, 10);  // 0.69</pre>
	<script src="../../dist/js/libs/jquery-1.11.3.min.js"></script>
    <script src="../../assets/dest/js/jquery.calcFloat.js"></script>
	<script>
		console.info('0.1 + 0.2 = ' + $.calcFloat.plus(0.1, 0.2));
        console.info('0.7 - 0.6 = ' + $.calcFloat.minus(0.7, 0.6));
        console.info('0.8 * 0.4 = ' + $.calcFloat.times(0.8, 0.4));
        console.info('6.9 / 10 = ' + $.calcFloat.divide(6.9, 10));
	</script>
</body>
</html>
